<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>details_real_estate</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  	<s:include value="/include/header.jsp"></s:include>
 	<s:if test="%{#session.userId != null}">
 	<table>
 	<tr>
	  	<td><s:text name="Address" /></td>
	  	<td><s:property value="realestate.reAddress" /></td>
	</tr><tr>    
	    <td><s:text name="Owner (Customer)" /></td>
	    <td><a href="<s:url includeParams="none" namespace="/" action="user/details_customer" >
	  					<s:param name="custId"><s:property value="realestate.customer.custId" /></s:param></s:url>">
						<s:property value="realestate.customer.custFullname" />
				</a></td>
	</tr><tr>    
	  	<td><s:text name="Apart.(House) Model" /></td>
	  	<td><s:property value="realestate.reType" /></td>
	</tr><tr>  	
	  	<td><s:text name="Description" /></td>
	  	<td><s:property value="realestate.reDescription" /></td>
  	</tr>
  	</table>
    <a href="<s:url includeParams="none" namespace="/" action="user/go_add_service_contract" >
  					<s:param name="reId"><s:property value="realestate.reId" /></s:param></s:url>">
		<s:text name="create_service_contract" />
	</a>
	<br>			
	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_SCs" >
					<s:param name="reId"><s:property value="realestate.reId" /></s:param></s:url>">
		<s:text name="show_the_SCs" />
	</a>
	<br/>
  	<a href="<s:url includeParams="none" namespace="/" action="user/show_all_real_estates" ></s:url>">
		<s:text name="backto_all_real_estates" />
	</a>
	<br/>
  	</s:if>
  </body>
</html>
